import type { DeliveryStatus } from '@/enum'

// 收货地址
export type orderInfo = {
  id: string
  receiver: string
  addressDetail: string
  isDefault: 0 | 1
  mobile: string
  province: string
  city: string
  county?: string
}
// 添加收货地址的参数
export type addAddr = Pick<
  orderInfo,
  'receiver' | 'mobile' | 'addressDetail' | 'isDefault'
> & {
  provinceCode: string
  cityCode: string
  countyCode: string
}
// 收货地址详情
export type AddrDetail = orderInfo & {
  provinceCode: string
  cityCode: string
  countyCode: string
}
// 三级联地址数据类型
export type Local = {
  code: string
  value: string
}
export type Distpicker = {
  area: Local
  city: Local
  province: Local
}
// 图标
export type IconType = {
  name: string
  size: number
  color: string
}
// 物流信息
export type LogisticsDetail = {
  list: LogisticsLog[]
  logisticsInfo: LocationInfo[]
  currentLocationInfo: LocationInfo
  statusValue: string
  status: DeliveryStatus
  awbNo: string
  name: string
  estimatedTime: string
}
// 经纬度信息
export type LocationInfo = {
  longitude: string
  latitude: string
}
// 物流日志
export type LogisticsLog = {
  id: string
  content: string
  createTime: string
  status: string
  statusValue: string
}
